<?php
/**
 * 直通车
 * @author Administrator
 *
 */
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class ThroughtrainApply extends Model
{
    //
	protected $table = 'throughtrain_apply';

    protected function getDateFormat()
    {
        return 'U';
    }


    public function throughtrain()
    {
        return $this->belongsTo('App\Models\Throughtrain', 'throughtrain_id', 'id');
    }

    public function project()
    {
        return $this->belongsTo('App\Models\Project', 'project_id', 'id');
    }

    public function user()
    {
        return $this->belongsTo('App\Models\User', 'uid', 'uid');
    }

    public function maker()
    {
        return $this->belongsTo('App\Models\Maker', 'maker_id', 'id');
    }
}
